<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=\, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // var a=89;
        // 提示prompt
        var a=prompt("请输入小时数")
        var b=24;
        var c=89%24;
        var d=(a-c)/24;
        console.log(d+"天"+c+"小时")
        // var a=89;
        // console.log("战士连续作战的时间为"+(a-(a%24))/24+"天"+a%24+"小时")
    </script>
</body>
</html>